package com.markedquilt.service.impl;
/*
 * PackageName: com.markedquilt.my_session.service.impl
 * Author:   coke
 * Date:     Created in 2020/11/23 20:50
 * Description:
 * History:
 * <author>        <time>             <version>          <desc>
 * 作者姓名         修改时间            版本号              描述
 * coke           2020/11/23 20:50     1.0
 */

import com.markedquilt.dao.ResumeDao;
import com.markedquilt.entity.Resume;
import com.markedquilt.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangKe
 * @Description
 * @date 2020/11/23 20:50.
 */
@Service
public class ResumeServiceImpl implements ResumeService {

    @Autowired
    private ResumeDao resumeDao;

    @Override
    public List<Resume> getList() {
        return resumeDao.getList();
    }

    @Override
    public Resume getById(int id) {
        return resumeDao.findById(id);
    }

    @Override
    public int deleteById(int id) {
        return resumeDao.deleteById(id);
    }

    @Override
    public Resume update(Resume resume) {
        int i = resumeDao.updateById(resume);
        return resume;
    }
}
